import numpy as np
import csv
weather_data=[]
weather=[]
date=[]
temp=[]
weather_data = "weather.csv"
with open (weather_data, 'r', encoding='utf-8') as csvfile:
    csv_reader=csv.reader(csvfile)
    birth_header=next(csv_reader)
    for row in csv_reader:#将csvreader转成可读写列表
            weather.append(row)
for i in range(0,365):
    date.append(weather[i][0])
for i in range(0,365):
    weatherr=int(weather[i][2])
    temp.append(weatherr)
average=[]
for i in range(0,361):
    all_temp=0
    for g in range(i,i+5):
        all_temp=all_temp+temp[g]
    average_temp=all_temp/5
    average.append(average_temp)
for i in range(0,361):
    if average[i]>=10 and average[i]<22:
        for g in range(i-5,i+1):
            if temp[g]>=10:
                spring=g#定义春季在列表的第几项开始
                break
        break
    else:
        continue
for i in range(spring,361):
    if average[i]>=22:
        for g in range(i-5,i+1):
            if temp[g]>=22:
                summer=g
                break
        break
    else:
        continue
for i in range(summer,361):
    if average[i]<22 and average[i]>=10:
        for g in range(i-5,i+1):
            if temp[g]<22 and temp[g]>=10:
                autumn=g
                break
        break
    else:
        continue
for i in range(autumn,361):
    if average[i]<10:
        for g in range(i-5,i+1):
            if temp[g]<10:
                winter=g
                break
        break
    else:
        continue
day=input()
a=int(day[0:4])
b=int(day[5:7])
c=int(day[8:10])
p=0
ls=[0,31,p,31,30,31,30,31,31,30,31,30,31]
if (a%4==0 and a%100!=0)or(a%400==0):
    ls[2]=29
else:
    ls[2]=28
b=b-1
for i in range(0,b+1):
    c=c+ls[i]
c=c-1
if c<spring or winter<c:
    print('冬季')
elif spring<=c<summer:
    print('春季')
elif summer<=c<autumn:
    print('夏季')
else:
    print('秋季')
